package com.JingYan.bo;


import lombok.Data;
import com.JingYan.validation.group.Batch;
import com.JingYan.validation.group.Select;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author DongJiaQi
 * @create 2022/11/29 9:38
 * @Description: Long 类型 id做查询条件
 */
@Data
public class LongIdBo {
    /**
     * id
     */
    @NotNull(message = "id 不能为空", groups = Select.class)
    private Long id;
    /**
     * id集
     */
    @NotNull(message = "id集合 不能为空", groups ={Batch.class})
    private List<Long> ids;
}
